package com.sservice.service.service;

import com.sservice.model.entity.GoodsPriceIndex;
import com.sservice.model.vo.GoodsPriceIndexVo;

import java.util.List;

public interface IGoodsPriceIndexService {

    int deleteByPrimaryKey(Integer id);

    int insert(GoodsPriceIndex record);

    int insertSelective(GoodsPriceIndex record);

    GoodsPriceIndex selectByPrimaryKey(Integer id);

    //价格指数统计
    List<GoodsPriceIndex> queryByPageAndGoodsId(GoodsPriceIndexVo gpiv);

    int updateByPrimaryKeySelective(GoodsPriceIndex record);

    int updateByPrimaryKey(GoodsPriceIndex record);

    /****
     * 根据产品Id 更新当天在线状态报价平均值
     * @param goodsId
     * @return
     */
    int updateAvgByGoodsId(int goodsId) throws IllegalAccessException;

}
